﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EntityLayer;
using System.Collections.ObjectModel;
using System.Xml.Serialization;

namespace TestEntity1
{
    [XmlRoot]
    public class Company :IObject
    {         

        [XmlAttribute(AttributeName = "Name")]
        public string Name { get; set; }

        [XmlAttribute(AttributeName = "Director")]
        public string Director { get; set; }


        [XmlAttribute(AttributeName = "ID")]
        public int ID
        {
            get;
            set;
        }
        
        public string Summary
        {
            get { return Name + "-" + Director; }
        }



        #region IObject Members

        
        public string ObjectType
        {
            get
            {
                return "Company";
            }
            
        }

        #endregion
    }
}
